<?php 

function kirki_seo_wordpress()
{
    
Kirki::add_field( 'ifan_theme_config', [
    'type'        => 'toggle',
    'settings'    => 'seo-wordpress-autoupdate',
    'label'       => esc_html__( '禁用wp自动更新,加快后台速度', 'kirki' ),
    'section'     => 'seo-wordpress',
    'default'     => '1',
    'priority'    => 1,
] );

Kirki::add_field( 'ifan_theme_config', [
    'type'        => 'toggle',
    'settings'    => 'seo-wordpress-googlefonts',
    'label'       => esc_html__( '禁用谷歌字体,加快前后台响应速度', 'kirki' ),
    'section'     => 'seo-wordpress',
    'default'     => '1',
    'priority'    => 1,
] );


Kirki::add_field( 'ifan_theme_config', [
    'type'        => 'toggle',
    'settings'    => 'seo-wordpress-postrevision',
    'label'       => esc_html__( '禁用文章版本修订,保持数据库清洁', 'kirki' ),
    'section'     => 'seo-wordpress',
    'default'     => '1',
    'priority'    => 1,
] );

Kirki::add_field( 'ifan_theme_config', [
    'type'        => 'toggle',
    'settings'    => 'seo-wordpress-postautosave',
    'label'       => esc_html__( '禁用文章自动保存,加快前台响应', 'kirki' ),
    'section'     => 'seo-wordpress',
    'default'     => '1',
    'priority'    => 1,
] );

Kirki::add_field( 'ifan_theme_config', [
    'type'        => 'toggle',
    'settings'    => 'seo-wordpress-commenthtml',
    'label'       => esc_html__( '禁用评论HTML标签,防止垃圾链接', 'kirki' ),
    'section'     => 'seo-wordpress',
    'default'     => '1',
    'priority'    => 1,
] );

Kirki::add_field( 'ifan_theme_config', [
    'type'        => 'toggle',
    'settings'    => 'seo-wordpress-emojis',
    'label'       => esc_html__( '禁用表情符号,加快前后台响应速度', 'kirki' ),
    'section'     => 'seo-wordpress',
    'default'     => '1',
    'priority'    => 1,
] );

Kirki::add_field( 'ifan_theme_config', [
    'type'        => 'toggle',
    'settings'    => 'seo-wordpress-trackbacks',
    'label'       => esc_html__( '禁用Trackbacks,彻底解决垃圾留言', 'kirki' ),
    'section'     => 'seo-wordpress',
    'default'     => '1',
    'priority'    => 1,
] );

Kirki::add_field( 'ifan_theme_config', [
    'type'        => 'toggle',
    'settings'    => 'seo-wordpress-feed',
    'label'       => esc_html__( '禁用站点Feed功能,防止文章被批量采集', 'kirki' ),
    'section'     => 'seo-wordpress',
    'default'     => '1',
    'priority'    => 1,
] );

Kirki::add_field( 'ifan_theme_config', [
    'type'        => 'toggle',
    'settings'    => 'seo-wordpress-autoembeds',
    'label'       => esc_html__( '禁用Auto Embeds功能,加快页面解析', 'kirki' ),
    'section'     => 'seo-wordpress',
    'default'     => '1',
    'priority'    => 1,
] );

Kirki::add_field( 'ifan_theme_config', [
    'type'        => 'toggle',
    'settings'    => 'seo-wordpress-gutengbao',
    'label'       => esc_html__( '屏蔽古腾堡编辑器,它对代码不友好,对初学者友好', 'kirki' ),
    'section'     => 'seo-wordpress',
    'default'     => '1',
    'priority'    => 1,
] );

Kirki::add_field( 'ifan_theme_config', [
    'type'        => 'toggle',
    'settings'    => 'seo-wordpress-XML-RPC',
    'label'       => esc_html__( '屏蔽XML-RPC功能,只在后台发布文章。', 'kirki' ),
    'section'     => 'seo-wordpress',
    'default'     => '1',
    'priority'    => 1,
] );

Kirki::add_field( 'ifan_theme_config', [
    'type'        => 'toggle',
    'settings'    => 'seo-wordpress-clearhead',
    'label'       => esc_html__( '移除无用的head代码,国际站请打开', 'kirki' ),
    'section'     => 'seo-wordpress',
    'default'     => '0',
    'priority'    => 1,
] );

Kirki::add_field( 'ifan_theme_config', [
    'type'        => 'toggle',
    'settings'    => 'seo-wordpress-wpversion',
    'label'       => esc_html__( '移除wp版本信息,陈旧的版本信息将导致漏洞利用', 'kirki' ),
    'section'     => 'seo-wordpress',
    'default'     => '1',
    'priority'    => 1,
] );

Kirki::add_field( 'ifan_theme_config', [
    'type'        => 'toggle',
    'settings'    => 'seo-wordpress-gravatar',
    'label'       => esc_html__( '禁用头像功能,加快前后台响应速度', 'kirki' ),
    'section'     => 'seo-wordpress',
    'default'     => '1',
    'priority'    => 1,
] );

Kirki::add_field( 'ifan_theme_config', [
    'type'        => 'toggle',
    'settings'    => 'seo-wordpress-linkguess',
    'label'       => esc_html__( '屏蔽链接猜测,增强SEO规则', 'kirki' ),
    'section'     => 'seo-wordpress',
    'default'     => '1',
    'priority'    => 1,
] );

Kirki::add_field( 'ifan_theme_config', [
    'type'        => 'toggle',
    'settings'    => 'seo-wordpress-badurl',
    'label'       => esc_html__( '屏蔽URL链接带eval和* base64等有害字符', 'kirki' ),
    'section'     => 'seo-wordpress',
    'default'     => '1',
    'priority'    => 1,
] );

}

 ?>